FROM alpine

RUN apk update --no-cache && apk add --no-cache ca-certificates tzdata
ENV TZ Asia/Shanghai

# https://github.com/percona/mongodb_exporter   下载后重命名
ADD mongodb_exporter.tar.gz /usr/local/bin

# mongodb_exporter --mongodb.uri=mongodb://172.16.100.35:27017/admin?ssl=false;mongodb://172.16.100.36:27017/admin?ssl=false
# mongodb_exporter --mongodb.uri=mongodb://172.16.100.35:27017;mongodb://172.16.100.36:27017
CMD ["mongodb_exporter"]


# docker run -it -p 9216:9216 rq/mongo-exporter:20210621 --mongodb.uri=mongodb://172.16.100.35:27017;mongodb://172.16.100.36:27017